@layout("/common/_container.html",{js:["/assets/modular/outstore/outorder/outorder.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar" lay-filter="test" id="sch-form">
                        <div class="layui-form-item" id="area-picker">
                            <div class="layui-inline">
                                <input id="outorderno" class="layui-input" type="text" placeholder="出库订单编号"/>
                            </div>
                            <div class="layui-inline">
                                <select id="state" name="state">
                                    <option value="">出库订单状态</option>
                                    @for(dict in dicts!){
                                    <option value="${dict.code!}">${dict.name!}</option>
                                    @}
                                </select>
                            </div>
                            <div class="layui-inline">
                                <input id="receiver" class="layui-input" type="text" placeholder="收件人"/>
                            </div>
                            <div class="layui-inline">
                                <input id="startTime" class="layui-input" type="text" placeholder="出库起始时间"/>
                            </div>
                            <div class="layui-inline">
                                <input id="endTime" class="layui-input" type="text" placeholder="出库结束时间"/>
                            </div>
                            <div class="layui-inline">
                                <select name="province" id="province" class="province-selector" lay-filter="province-1" data-value="请选择省">
                                    <option value="">请选择省</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select name="city" id="city" class="city-selector" lay-filter="city-1" data-value="请选择市">
                                    <option value="">请选择市</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select name="county" id="county" class="county-selector" lay-filter="county-1" data-value="请选择区/县">
                                    <option value="">请选择区/县</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnReset" class="layui-btn icon-btn"><i class="layui-icon">&#xe669;</i>重置</button>
                                @if(shiro.hasPermission("/outorder/add")){
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>新增</button>
                                @}
                                @if(shiro.hasPermission("/outorder/edit")){
                                <button id="btnEdit" class="layui-btn layui-btn-normal"><i class="layui-icon">&#xe642;</i>修改</button>
                                @}
                                @if(shiro.hasPermission("/outorder/delete")){
                                <button id="btnDelete" class="layui-btn layui-btn-danger"><i class="layui-icon">&#xe640;</i>删除</button>
                                @}
                                @if(shiro.hasPermission("/outorder/review")){
                                <button id="btnReview" class="layui-btn icon-btn"><i class="layui-icon">&#xe605;</i>审核</button>
                                @}
                                @if(shiro.hasPermission("/outorder/cancelReview")){
                                <button id="btnCancelReview" class="layui-btn icon-btn"><i class="layui-icon">&#x1006;</i>撤销审核</button>
                                @}
                                @if(shiro.hasPermission("/outorder/pick")){
                                <button id="btnPick" class="layui-btn icon-btn"><i class="layui-icon">&#xe657;</i>生成拣货任务</button>
                                @}
                                @if(shiro.hasPermission("/outorder/remove")){
                                <button id="btnRemove" class="layui-btn layui-btn-danger"><i class="layui-icon">&#x1006;</i>取消订单</button>
                                @}
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="outorderTable" lay-filter="outorderTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{#  if(d.state == "0"||d.state == "1"){  }}
    <a class="layui-btn layui-btn-xs" lay-event="addDetail">录入明细</a>
    {{#  } else {  }}
    <a class="layui-btn layui-btn-xs" lay-event="checkDetail">查看明细</a>
    {{#  }  }}
    <a class="layui-btn layui-btn-xs" lay-event="print">打印</a>
</script>

@}